import { searchProductNameDropDownListService } from '@/api/finance/salePriceManage/changePriceRecordQuery';

export const FORM_ITEMS = [
  {
    prop: 'skuNo',
    label: 'SKU编码',
    type: 'input'
  },
  {
    prop: 'productUuids',
    label: '商品名称',
    type: 'select',
    filterable: true,
    multiple: true,
    reserveKeyword: true,
    remote: true,
    remoteMethod: searchProductNameDropDownListService,
    paramKey: 'productName',
    optionKeys: { valueKey: 'productUuid', labelKey: 'productName' },
  },
  {
    prop: 'provinceName',
    label: '销售省',
    type: 'input'
  }
]

export const CURRENT_TABLE_COLUMNS = [
  {
    title: '变更时间',
    key: 'createdTime',
  },
  {
    title: '变更类型',
    key: 'typeStr',
  },
  {
    title: '提交人',
    key: 'submitUserName',
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '规格',
    key: 'spec'
  },
  {
    title: '计量单位',
    key: 'unit',
  },
  {
    title: '省',
    key: 'provinceName'
  },
  {
    title: '售价',
    key: 'salePrice',
  },
  {
    title: '单据号',
    key: 'recordNo',
    width: 200
  },
]

export const HISTORY_TABLE_COLUMNS = [
  {
    title: '变更时间',
    key: 'opeTime',
  },
  {
    title: '变更类型',
    key: 'commitType',
  },
  {
    title: '提交人',
    key: 'commitOper',
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '规格',
    key: 'spec'
  },
  {
    title: '计量单位',
    key: 'mainUnit',
  },
  {
    title: '售价类型',
    key: 'saleTypeStr',
  },
  {
    title: '省',
    key: 'provinceName'
  },
  {
    title: '现金价',
    key: 'cashPrice',
  },
  {
    title: '分销价',
    key: 'cashDistribMoney',
  },
  {
    title: '售价',
    key: 'salePrice',
  },
  {
    title: '单据号',
    key: 'batchNo',
    width: 200
  },
]
